package com.mydemo.springlearning.functions.DI.conf;

import com.mydemo.springlearning.functions.DI.po.ProvidedCar;
import com.mydemo.springlearning.functions.DI.po.ProvidedFruit;
import lombok.Data;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanProvidedConf {

    @Bean
    public ProvidedFruit fruit(){
        return new ProvidedFruit("橘子");
    }

    @Bean
    public ProvidedCar car(){
        return new ProvidedCar("奔驰");
    }
}
